import request from "@/request"


export function getAssetsData(id){ //获取资产数据
    return request({
        url :`/user/getMyInfo?id=${id}`,
        method : 'get',
    })
}


export function getnotice(){ 
    return request({
        url :`/notic/content`,
        method : 'get',
    })
}
export function getearn(user_id){ 
    return request({
        url :`earn/list?user_id=`+user_id,
        method : 'get',
    })
}
export function income(param) {
    return request({
      url: "/trade/income",
      method: "post",
      params: param,
  
    });
  }
  export function hold(param) {
    return request({
      url: "/user/balance",
      method: "post",
      params: param,
  
    });
  }

  export function sell(param) {
    return request({
      url: "/trade/sell",
      method: "post",
      params: param,
    });
  }
  export function tradelist(param) {
    return request({
      url: "/trade/tradelists",
      method: "post",
      params: param,
    });
  }
  export function zz(param) {
    return request({
      url: "/transfer/zz",
      method: "post",
      params: param,
    });
  }
  export function trlists() {
    return request({
      url: "/trade/tradelist",
      method: "get",
    });
  }
  export function getcodes(param) {
    return request({
      url: "/user/getcode",
      method: "post",
      params: param,
    });
  }
  export function forgetpwd(param) {
    return request({
      url: "/user/forget",
      method: "post",
      params: param,
    });
  }
  export function checkeduser(param) {
    return request({
      url: "/user/checked",
      method: "post",
      params: param,
    });
  }
  export function register(param) {
    return request({
      url: "/user/register",
      method: "post",
      params: param,
    });
  }
  export function getconf(param) {
    return request({
      url: "/config/confv",
      method: "get",
      params: param,
    });
  }
  export function geteam(param) {
    return request({
      url: "/user/team",
      method: "post",
      params: param,
    });
  }

